package com.vcredit.creditcat.persistence.base;

import com.vcredit.creditcat.model.LoginLog;
import com.vcredit.framework.pagination.DefaultCriteria;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoginLogMapper {
	void insert(LoginLog obj);

	void update(LoginLog obj);

	List<LoginLog> findAll();

	List<LoginLog> find(LoginLog obj);

	LoginLog findById(Long id);

	LoginLog findByAccountId(@Param("accountId") Long accountId);

	List<LoginLog> findByPage(DefaultCriteria criteria);
	
	List<LoginLog> findCheckLogin(String token);
}
